home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
FM Towns: Free Software Collection 8
/
FM Towns Free Software Collection 8.iso
/
t_os
/
0rc_trn2
/
rc_title.c
< prev
next >
Wrap
Text File
|
1994-06-01
|
5KB
|
131 lines
/* タイトル画面を表示する */
int title(void)
{
char para[64];
int sr,ab,pd;
/* バックの初期化(page0を塗る) */
EGB_writePage(egb_work,0);
EGB_paintMode(egb_work,0x22);
EGB_color(egb_work,0,0x0777); /* 前景色 */
EGB_color(egb_work,2,0x0777); /* 面塗色 */
WORD(para+0)= 0;
WORD(para+2)= 0;
WORD(para+4)=319;
WORD(para+6)=239;
EGB_rectangle(egb_work,para);
EGB_textDirection(egb_work,0); /* 文字の向き 0:右書き向き */
EGB_textDisplayDirection(egb_work,3); /* 文字を書く向き 3:下書き */
EGB_textSpace(egb_work,12); /* 文字間隔 */
EGB_textZoom(egb_work,0,12,16); /* 文字の拡大 0:ANK 12:横 16:縦 */
EGB_textZoom(egb_work,1,18,18); /* 文字の拡大 1:漢字 18:横 18:縦 */
EGB_fontStyle(egb_work,0x04); /* 字体の設定 */
EGB_color(egb_work,0,0x6777); /* 前景色(文字の色) */
WORD(para+0)= 7; /* 文字のX座標 */
WORD(para+2)= 30; /* 文字のY座標 */
WORD(para+4)= 14; /* 文字数 */
strcpy(¶[6],"ラジコンカ|の"); /* 文字の設定 */
EGB_sjisString(egb_work,para); /* 文字列の表示 */
WORD(para+0)=295; /* 文字のX座標 */
WORD(para+2)= 25; /* 文字のY座標 */
WORD(para+4)= 16; /* 文字数 */
strcpy(¶[6],"練習プログラム2"); /* 文字の設定 */
EGB_sjisString(egb_work,para); /* 文字列の表示 */
EGB_textDisplayDirection(egb_work,0); /* 文字を書く向き 0:右書き */
EGB_textSpace(egb_work,12); /* 文字間隔 */
EGB_textZoom(egb_work,0,12,16); /* 文字の拡大 0:ANK 12:横 16:縦 */
EGB_textZoom(egb_work,1,18,18); /* 文字の拡大 1:漢字 18:横 18:縦 */
EGB_fontStyle(egb_work,0x04); /* 字体の設定 */
WORD(para+0)=110; /* 文字のX座標 */
WORD(para+2)= 20; /* 文字のY座標 */
WORD(para+4)= 8; /* 文字数 */
strcpy(¶[6],"操作方法"); /* 文字の設定 */
EGB_sjisString(egb_work,para); /* 文字列の表示 */
EGB_textSpace(egb_work,2); /* 文字間隔 */
EGB_textZoom(egb_work,0, 8,12); /* 文字の拡大 0:ANK 12:横 16:縦 */
EGB_textZoom(egb_work,1,12,12); /* 文字の拡大 1:漢字 18:横 18:縦 */
WORD(para+0)= 35; /* 文字のX座標 */
WORD(para+2)= 40; /* 文字のY座標 */
WORD(para+4)= 35; /* 文字数 */
strcpy(¶[6],"パッドをプロポ(操縦機)に見立てます。"); /* 文字の設定 */
EGB_sjisString(egb_work,para); /* 文字列の表示 */
WORD(para+0)= 80; /* 文字のX座標 */
WORD(para+2)= 55; /* 文字のY座標 */
WORD(para+4)= 16; /* 文字数 */
strcpy(¶[6],"前進:↑(上)ボタン"); /* 文字の設定 */
EGB_sjisString(egb_work,para); /* 文字列の表示 */
EGB_sjisString(egb_work,para); /* 文字列の表示 */
WORD(para+0)= 80; /* 文字のX座標 */
WORD(para+2)= 70; /* 文字のY座標 */
WORD(para+4)= 16; /* 文字数 */
strcpy(¶[6],"後退:↓(下)ボタン"); /* 文字の設定 */
EGB_sjisString(egb_work,para); /* 文字列の表示 */
EGB_sjisString(egb_work,para); /* 文字列の表示 */
WORD(para+0)= 80; /* 文字のX座標 */
WORD(para+2)= 85; /* 文字のY座標 */
WORD(para+4)= 13; /* 文字数 */
strcpy(¶[6],"右折:Aボタン"); /* 文字の設定 */
EGB_sjisString(egb_work,para); /* 文字列の表示 */
EGB_sjisString(egb_work,para); /* 文字列の表示 */
WORD(para+0)= 80; /* 文字のX座標 */
WORD(para+2)=100; /* 文字のY座標 */
WORD(para+4)= 13; /* 文字数 */
strcpy(¶[6],"左折:Bボタン"); /* 文字の設定 */
EGB_sjisString(egb_work,para); /* 文字列の表示 */
EGB_sjisString(egb_work,para); /* 文字列の表示 */
WORD(para+0)= 50; /* 文字のX座標 */
WORD(para+2)=115; /* 文字のY座標 */
WORD(para+4)= 17; /* 文字数 */
strcpy(¶[6],"注意:右折・左折は、"); /* 文字の設定 */
EGB_sjisString(egb_work,para); /* 文字列の表示 */
EGB_sjisString(egb_work,para); /* 文字列の表示 */
WORD(para+0)= 65; /* 文字のX座標 */
WORD(para+2)=130; /* 文字のY座標 */
WORD(para+4)= 23; /* 文字数 */
strcpy(¶[6],"ハンドルをきるだけです。");/* 文字の設定 */
EGB_sjisString(egb_work,para); /* 文字列の表示 */
EGB_sjisString(egb_work,para); /* 文字列の表示 */
WORD(para+0)= 50; /* 文字のX座標 */
WORD(para+2)=150; /* 文字のY座標 */
WORD(para+4)= 20; /* 文字数 */
strcpy(¶[6],"AボタンかBボタンを");/* 文字の設定 */
EGB_sjisString(egb_work,para); /* 文字列の表示 */
EGB_sjisString(egb_work,para); /* 文字列の表示 */
WORD(para+0)= 80; /* 文字のX座標 */
WORD(para+2)=165; /* 文字のY座標 */
WORD(para+4)= 18; /* 文字数 */
strcpy(¶[6],"押すと、始まります。"); /* 文字の設定 */
EGB_sjisString(egb_work,para); /* 文字列の表示 */
EGB_sjisString(egb_work,para); /* 文字列の表示 */
WORD(para+0)= 50; /* 文字のX座標 */
WORD(para+2)=220; /* 文字のY座標 */
WORD(para+4)= 25; /* 文字数 */
strcpy(¶[6],"SELECTボタンかRUNボタンを");/* 文字の設定 */
EGB_sjisString(egb_work,para); /* 文字列の表示 */
EGB_sjisString(egb_work,para); /* 文字列の表示 */
WORD(para+0)= 65; /* 文字のX座標 */
WORD(para+2)=235; /* 文字のY座標 */
WORD(para+4)= 18; /* 文字数 */
strcpy(¶[6],"押すと、終了します。"); /* 文字の設定 */
EGB_sjisString(egb_work,para); /* 文字列の表示 */
do
{
pad_read(&sr,&ab,&pd); /* AかBが押されたら、次へ行く */
}while(ab == 0);
return TRUE;
}